package com.haois.component.common.enu;


import com.haois.component.constant.StatusCode;

/**
 * description
 *
 * @author RuiHaoZ on hgits.cn
 * @date 2018/10/31 9:18
 */
public enum JwtEnum {

    APP("APP", StatusCode.JWT_APP_TTL,StatusCode.COOKIE_JWT_APP),
    WEB("WEB",StatusCode.JWT_WEB_TTL,StatusCode.COOKIE_JWT_WEB),
    CHAT("CHAT",StatusCode.JWT_CHAT_TTL,StatusCode.COOKIE_JWT_CHAT);
    private String audience;
    private Long expiration;
    private String cookieName;

    public String getCookieName() {
        return cookieName;
    }

    public void setCookieName(String cookieName) {
        this.cookieName = cookieName;
    }

    public String getAudience() {
        return audience;
    }

    public void setAudience(String audience) {
        this.audience = audience;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }

    JwtEnum(String audience, Long expiration, String cookieName) {
        this.audience = audience;
        this.expiration = expiration;
        this.cookieName = cookieName;
    }
}
